package com.itheima.api.string.create;

/**
 * @author Anomaly
 * @date 2022/12/6 16:43
 */
public class StringDemo {
    public static void main(String[] args) {
        char[] chars = {'a', 'b', 'c'};
        String s = new String(chars);
        // s = abc
        System.out.println("s = " + s);

        byte[] bytes = {65, 66, 98, 99};
        String s1 = new String(bytes);
        // s1 = ABbc
        System.out.println("s1 = " + s1);
    }
}
